package io.renren.modules.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.contract.dao.ContractReceiptInfoDao;
import io.renren.modules.contract.entity.ContractReceiptInfoEntity;
import io.renren.modules.contract.service.ContractReceiptInfoService;



@Service("contractReceiptInfoService")
public class ContractReceiptInfoServiceImpl implements ContractReceiptInfoService {
	@Autowired
	private ContractReceiptInfoDao contractReceiptInfoDao;
	
	@Override
	public ContractReceiptInfoEntity queryObject(Long id){
		return contractReceiptInfoDao.queryObject(id);
	}
	
	@Override
	public List<ContractReceiptInfoEntity> queryList(Map<String, Object> map){
		return contractReceiptInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return contractReceiptInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(ContractReceiptInfoEntity contractReceiptInfo){
		contractReceiptInfoDao.save(contractReceiptInfo);
	}
	
	@Override
	public void update(ContractReceiptInfoEntity contractReceiptInfo){
		contractReceiptInfoDao.update(contractReceiptInfo);
	}
	
	@Override
	public void delete(Long id){
		contractReceiptInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		contractReceiptInfoDao.deleteBatch(ids);
	}
	
}
